package com.hh.service.dao.merchant;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hh.common.model.merchant.MerchantMenu;

import java.util.List;

public interface MerchantMenuDao extends BaseMapper<MerchantMenu> {

    /**
     * 通过角色数据获取权限
     * @param userId 用户id
     * @return List
     */
    List<MerchantMenu> findPermissionByUserId(Integer userId);

    List<MerchantMenu> getMenusByUserId(Integer userId);
}
